import os
import time
from common.maile_tools import send_email
from common.log_tools import log
import pytest

if __name__ == '__main__':
    # pytest_options =["-s","-v","--html=./report/report.html","-m=api"]
    # log.info("开始执行")
    pytest.main()
    # 生成allure测试报告 ,清理旧数据
    os.system("allure generate ./allure-data -o ./reports --clean")
    time.sleep(2)
    # send_email()